﻿<Window x:Class="PandorasBox.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Name="MainWindow"
    Loaded="Window_Loaded"
    Title="Pandora's Box Reloaded"
    Height="250" Width="800" WindowStyle="SingleBorderWindow" IsEnabled="True" MinWidth="800" MinHeight="250"
    ResizeMode="CanResizeWithGrip" Icon="App.ico">
    <Grid ShowGridLines="False">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="30" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <DockPanel Grid.Row="0" Margin="0" LastChildFill="True">
            <Label DockPanel.Dock="Bottom" FontSize="8" ContentStringFormat="0%">
                <Binding ElementName="uiZoomSlider" Path="Value" />
            </Label>
            <Slider DockPanel.Dock="Top" Margin="0" Name="uiZoomSlider" HorizontalAlignment="Center" Orientation="Horizontal"
                 Minimum="0.25" Maximum="3.5" Value="1" MouseRightButtonDown="uiZoomSlider_MouseRightButtonDown">
                <Slider.LayoutTransform>
                    <RotateTransform Angle="-90" />
                </Slider.LayoutTransform>
            </Slider>
        </DockPanel>

        <Grid ShowGridLines="False" Grid.Column="1" Grid.Row="0">
            <Grid.LayoutTransform>
                <ScaleTransform 
                        ScaleX="{Binding ElementName=uiZoomSlider, Path=Value}" 
                        ScaleY="{Binding ElementName=uiZoomSlider, Path=Value}"/>
            </Grid.LayoutTransform>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="2.5*" />
                <ColumnDefinition Width="1*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="30" />
                <RowDefinition />
            </Grid.RowDefinitions>

            <WrapPanel Grid.ColumnSpan="2" Name="menuBar">
                <!-- Buttons are going here -->
            </WrapPanel>
            
            <DockPanel Grid.Row="1" LastChildFill="True" Loaded="tcMain_DockPanel_Loaded">
                <TabControl Margin="0" Name="tcMain">
                    <!-- Modules are going here -->
                    <TabItem Header="tiGeneral" Name="tiGeneral">
                    </TabItem>
                </TabControl>
            </DockPanel>
            
            <DockPanel Grid.Row="1" Grid.Column="1" LastChildFill="True" Loaded="tcSub_DockPanel_Loaded">
                <TabControl Margin="0" Name="tcSub">
                    <TabItem Header="tiArt" Name="tiArt">
                        <Grid />
                    </TabItem>
                    <TabItem Header="tiMap" Name="tiMap">
                        <Grid />
                    </TabItem>
                    <TabItem Header="tiProps" Name="tiProps">
                        <Grid />
                    </TabItem>
                    <TabItem Header="tiCustom" Name="tiCustom">
                        <Grid />
                    </TabItem>
                </TabControl>
            </DockPanel>
        </Grid>
    </Grid>
</Window>
